fix-for-gcc-2.16-2
commit
ce6f2b57f5450a8239022dcbfb2d750f273b83cb
Author: Nicholas Vinson <nvinson234@gmail.com>
Date: Tue Feb 24 19:48:42 2026 -0500
util/resolve: Save str[r]chr() ret val to const data ptr
With glibc-2.43 implementing the C23 standard, strrchr() and strchr()
now return "const char *" when its first argument is "const char *".
The fix is update all pointers receiving strrchr() and strchr()'s return
values so that they are now "const char *" instead of "char *".
Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name fix-for-gcc-2.16-2.patch